<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/


//laravel框架主页的路由
Route::get('/', function () {
    return view('welcome');
});
//前台路由配置

//前台登录的路由
Route::get('/home/login',function(){
return view('home.login.login');
});
//前台个人资料的路由
 Route::get('/home/user/userdata/','home\UserController@cxzl');
 //前台编辑详细信息的路由
 Route::get('/home/data',function(){
 	return view('home.user.data');
 });
//跳转到前台主页
Route::get('/home/index',function(){
	return view('home.index');
 });
//前台用户管理
Route::controller('/home/user','home\UserController');

//测试路由
Route::get('/ahaha','PublicController@pic');
//后台路由配置
//后台主页路由
Route::get('/admin',function(){
	return view('admin.index');
});
//后台添加页面路由
Route::get('admin/user/add',function(){
	return view('admin.user/add');
});
// //后台用户管理
Route::controller('/admin/user','admin\UserController');
